home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / M2Crypto / BN.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  827b  |  24 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. import m2
  5.  
  6. def rand(bits, top = -1, bottom = 0):
  7.     return m2.bn_rand(bits, top, bottom)
  8.  
  9.  
  10. def rand_range(range):
  11.     return m2.bn_rand_range(range)
  12.  
  13.  
  14. def randfname(length):
  15.     letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890'
  16.     lettersLen = len(letters)
  17.     fname = []
  18.     for x in range(length):
  19.         fname += [
  20.             letters[m2.bn_rand_range(lettersLen)]]
  21.     
  22.     return ''.join(fname)
  23.  
  24.